<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<h:head>
	<title>:: SISARQ2.0 ::</title>
	<p:resources />
</h:head>
<h:body>
	<ui:composition template="../tpt/tpt.xhtml">
		<ui:define name="conteudo">
			<f:view contentType="text/html">
				<h:form id="formCadastro" name="formCadastro" prependId="false" enctype="multipart/form-data">

								<table>
				<tr>
					<td>COD</td>
					<td>
					<h:inputText value="#{cadastroUF.uf.id}"/>
					</td>
				</tr>
				 <tr>
				  <td>Menu</td>
				  <td><h:inputText value="#{cadastroUF.uf.uf}"/> </td>
				  <td><h:inputText value="#{cadastroUF.uf.sigla}"/> </td>
				  
				 </tr>
				</table>
				<h:panelGrid columns="2">
	
				<p:commandButton value="Salvar" update="formCadastro" action="#{cadastroUF.acaoInserir}"/>
				<p:commandButton value="Limpar" update="formCadastro" action="#{cadastroUF.acaoLimpar}"/>

				</h:panelGrid>
					<p:ajaxStatus onstart="statusDialog.show();"
						onsuccess="statusDialog.hide();" />

					<p:dialog modal="true" widgetVar="statusDialog" header="Status"
						draggable="false" closable="false">
						<p:graphicImage value="../img/ajaxloadingbar.gif" />
					</p:dialog>
				</h:form>
			</f:view>
		</ui:define>
	</ui:composition>
</h:body>
</html>